-- GENERATED SPELL FOR [Spectral Horse] --


function spell0_16149(pUnit, Event) --@Stomp,Self--
pUnit:FullCastSpellOnTarget(27993,pUnit)
pUnit:RegisterEvent('Sorts_16149', 8000, 1)
end

function Sorts_16149(pUnit, Event)
local choix_sorts_16149 = math.random(0, 0)
if choix_sorts_16149 == 0 then
pUnit:RegisterEvent('spell0_16149', 1, 1)
end
end

function mob16149_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16149', math.random(1500, 3000), 1)
end

function mob16149_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16149_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16149_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16149, 1, 'mob16149_Action')
RegisterUnitEvent(16149, 2, 'mob16149_Leave')
RegisterUnitEvent(16149, 3, 'mob16149_Kill')
RegisterUnitEvent(16149, 4, 'mob16149_Die')
